﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ToolRental.Client.SMvvm.Admin
{
    public interface IBorrowServiceAgent
    {
        Task<List<Device>> GetSelectedOrderDeviceList(int deviceTypeId,INotifyError notifier);
        Task<List<Borrow>> GetBorrowDeviceList(INotifyError notifier);
        Task<List<Order>> GetOrderDeviceList(INotifyError notifier);

        void FinishBorrow(int borrowId, INotifyError notifier);
        void StartBorrow(int orderId, int toolId, DateTime deadline, INotifyError notifier);
    }
}
